<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PrevisionEnteteService
 *
 * @author ingeni
 */
class PrevisionEnteteService {
    //put your code here
    public function display(ContextExecution $p_contexte){
    	$numeroCompte=$p_contexte->m_dataRequest->getData('noCompte');
    	$fluxId=$p_contexte->m_dataRequest->getData('fluxId');
    	$annee=$p_contexte->m_dataRequest->getData('annee');
    	
    	$liste = new ListObject();
    	$liste->name='PrevisionListe';
    	$liste->request('Prevision', "noCompte='$numeroCompte' AND fluxId='$fluxId' AND annee='$annee' AND typenr='L'");
    	
    	$p_contexte->addDataBlockRow($liste);
    }
}

?>
